package com.java.threadLocal.multiThread;

public class MyThread extends Thread {
	
	 private SequenceNumber sn;
	 
     public MyThread(SequenceNumber sn){
         this.sn=sn;
     }
     
     public void run(){
         //每个线程打印3个序列号
         for(int i=0;i<3;i++){
             System.out.println("thread["+Thread.currentThread().getName()+",sn["+sn.getNextNum()+"]");
         }
     }

}
